<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2022/12/5
 * Time: 13:17
 */

namespace app\model\sys;
use think\Model;
use think\model\relation\HasOne;
class SysUser extends Model
{
    public function token() : HasOne{
        return $this->hasOne(SysUserToken::class,'user_id','user_id');
    }

    public function createAdmin(){
        return $this->hasOne(SysUser::class,'user_id','create_user_id');
    }
}